package com.qfedu.common.core.utils;

/**
 * @Classname UserUtils
 * @Description TODO
 * @Date 2025-09-23 16:31
 * @Created by 老任与码
 */
public class UserUtils {

    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void setUid(Integer uid) {
        threadLocal.set(uid);
    }

    public static Integer getUid() {
        return threadLocal.get();
    }
    
    public static void removeUid() {
        threadLocal.remove();
    }
}
